package org.flower.isme.flower.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.flower.isme.common.response.Page;
import org.flower.isme.flower.domain.entity.LightData;
import org.flower.isme.flower.domain.request.LightDataPageRequest;
import org.flower.isme.flower.service.LightDataService;
import org.flower.isme.flower.mapper.LightDataMapper;
import org.springframework.stereotype.Service;


@Service
public class LightDataServiceImpl extends ServiceImpl<LightDataMapper, LightData>
    implements LightDataService{


    /**
     * 分页查询植物列表
     *
     * @param lightDataPageRequest 查询信息
     * @return Page
     */
    @Override
    public Page<LightData> queryPage(LightDataPageRequest lightDataPageRequest) {
        IPage<LightData> page = lightDataPageRequest.toPage();
        IPage<LightData> lightDataIPage = baseMapper.selectPage(page, null);
        return Page.convert(lightDataIPage);
    }
}




